﻿
namespace Behemoth.SharePoint.Logging {

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    public class LoggingEventArgs {

        public LoggingEventArgs(string category, string product, Exception ex)
            : this(category, product, ex, TraceSeverity.Exception) {
        }
        public LoggingEventArgs(string category, string product, Exception ex, TraceSeverity severity) {
            Category = category;
            Product = product;
            Exception = ex;
            Severity = severity;
        }
        public LoggingEventArgs(string category, string product, string message, TraceSeverity severity) {
            Category = category;
            Product = product;
            Message = message;
            Severity = severity;
        }

        public Exception Exception {
            get;
            set;
        }
        public string Message {
            get;
            set;
        }
        public string Category {
            get;
            set;
        }
        public string Product {
            get;
            set;
        }
        public TraceSeverity Severity {
            get;
            set;
        }

    } // LoggingEventArgs 

    public delegate void LoggingEventHandler(object sender, LoggingEventArgs e);

} // namespace